<%@ include file="/include.jsp" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
  <link type="text/css" rel="stylesheet" href="styles/default.css">
	<script type="text/javascript" language="JavaScript" src="scripts/common.js"></script>
	<script type="text/javascript" language="JavaScript" src="scripts/check.js"></script>
	<script type="text/javascript" language="JavaScript" src="scripts/upload.js"></script>
</head>
<body>
<c:if test="${map.releaseDecl==null}">
	<div style="margin-top:200px;font-weight:600;">此通关单号 "${map.releaseDeclNo}" 在CIQ中未检索到记录</div>
</c:if>
<c:if test="${map.releaseDecl!=null}">
	<c:set value="${map.releaseDecl}" var="decl" />
	<div class="main" align="center">
		<table style="width:100%;" align="center">
			<tr>
				<td>
					<table>
						<caption>
							通关单详细信息
						</caption>
						<tr><td>
							<table  class="bean">
								<tr class="size">
								  <td width="13%"></td>
								  <td></td>
								  <td width="13%"></td>
								  <td width="23%"></td>
								  <td width="13%"></td>
								  <td width="23"></td>
								</tr>
								<tr>
								  <td class="formLabel" >报检号</td>
								  <td>${decl.declNo}</td>
								  <td class="formLabel" >通关序号</td>
								  <td>${decl.releaseNo}</td>
								  <td class="formLabel" >发货日期</td>
								  <td><fmt:formatDate value="${decl.despDate}"  pattern="yyyy-MM-dd"/></td>
								</tr>
								<tr>
								  <td class="formLabel" >发货人(中)</td>
								  <td>${decl.consignorCname}</td>
								  <td class="formLabel" >发货人(英)</td>
								  <td>${decl.consignorEname}</td>
								  <td class="formLabel" >合同号</td>
								  <td>${decl.contractNo}</td>
								</tr>
								<tr>
								  <td class="formLabel" >收货人(中)</td>
								  <td>${decl.consigneeCname}</td>
								  <td class="formLabel" >收货人(英)</td>
								  <td>${decl.consigneeEname}</td>
								  <td class="formLabel" >提单/运单号</td>
								  <td>${decl.carrierNoteNo}</td>
								</tr>
								<tr>
								  <td class="formLabel" >输往国家/地区</td>
								  <td><mytag:c2s key="${decl.countryCode}" type="country"/></td>
								  <td class="formLabel" >标记及号码</td>
								  <td>${decl.markNo}</td>
								  <td class="formLabel" >通关单有效期</td>
								  <td><fmt:formatDate value="${decl.releaseExpireDate}"  pattern="yyyy-MM-dd"/></td>
								</tr>
							</table>
						</td></tr>
					</table>
				</td>
			</tr>
			
			<tr>
				<td>
					<table>
						<caption>
							货物清单
						</caption>
						<tr><td>
							<table class="list" id="ajaxRegion">
					            <tr class="title">
						          <td width="5%">序号</td>
					              <td>货物名称</td>
					              <td width="12%">HS编码</td>
					              <td width="9%">监管类别</td>
					              <td width="10%">数量</td>
					              <td width="10%">重量</td>
					              <td width="10%">货物总值</td>
					              <td width="8%">包装</td>
					            </tr>
					            <tbody name="disp">
						            <c:forEach items="${decl.releaseGoodsList}" varStatus="stat" var="goods">
						             <c:set var="linecout" value="${stat.count}"/>
		  				             <tr>
		  				             	<td>${stat.count}</td>
						            	<td>${goods.goodsCname}</td>
						            	<td>${goods.hsCode}</td>
						            	<td>${goods.inspMonitorCond}</td>
						            	<td>${goods.releaseQty}<mytag:c2s key="${goods.qtyUnitCode}" type="measure"/></td>
						            	<td>${goods.releaseWeight}<mytag:c2s key="${goods.weightUnitCode}" type="measure"/></td>
						            	<td>${goods.releaseValues}<mytag:c2s key="${goods.ccy}" type="money"/></td>
						            	<td>${goods.releasePackNumber}<mytag:c2s key="${goods.packTypeCode}" type="pack"/></td>
						             </tr>
						            </c:forEach>
					            </tbody>
							</table>
						</td></tr>
					</table>
				</td>
			</tr>
			
			<tr class="button">
			  <td align="center">
			  	<div>
				    <input type="button" value=" 关闭 " onClick="window.opener=null;window.close();">
			  	</div>
			   </td>
			</tr>
		</table>
	</div>
</c:if>
</body>
</html>
